package com.chinasofti;

public class Demo02 {
    public static void main(String[] args) {
        Student stu1 = new Student();
        Student stu2 = new Student(12);
    }
}
class Student{
    {
        System.out.println("好好学习，天天向上");
    }
    public Student(){
        System.out.println("无参构造器.........");
    }
    public  Student(int a){
        System.out.println("有参构造器.........");
    }
}